#ifndef __UTIL_H__
#define __UTIL_H__
#include<string.h>
#include"common.h"
#include"sse_avx.h"
void* m_memcpy(void *dst,const void *src,int count);
/* *
 * to_struct - get the struct from a ptr
 * @ptr:    a struct pointer of member
 * @type:   the type of the struct this is embedded in
 * @member: the name of the member within the struct
 * */
#define to_struct(ptr, type, member)                               \
    ((type *)((char *)(ptr) - offsetof(type, member)))

     
#endif